import CrudService from '../global/CrudService'

let instance = null

// 后端路径
const prefix = '/rptManTip'

class Service extends CrudService {
	constructor() {
		super(prefix)
		this.getListPath = `${prefix}/queryDbList`
		// this.addPath     = `${prefix}/doTemplateInsert`
		// this.deletePath  = `${prefix}/doTemplateDelete`
		// this.updatePath  = `${prefix}/doTemplateUpdate`
		return instance || this
	}
	
	static getInstance() {
		if (!instance) {
			instance = new Service()
		}
		return instance
	}
	
	
	//反馈-上级(中人物反馈)
	doFk_sj           = (model) => {
		return this.post(`${prefix}/doFk_sj`, model);
	}
	// 反馈-下级(小人物反馈)
	doFk_xj           = (model) => {
		return this.post(`${prefix}/doFk_xj`, model);
	}
	// 再次提醒
	doTip             = (model) => {
		return this.post(`${prefix}/doTip`, model);
	}
	// 下发
	doXf              = (model) => {
		return this.post(`${prefix}/doXf`, model);
	}
	// 领导添加督办信息
	insertDb          = (model) => {
		return this.post(`${prefix}/insertDb`, model);
	}
	//http://localhost:8090/moon/rest/rptSp/querySpPersonTree
	querySpPersonTree = (model) => {
		return this.get(`/rptSp/querySpPersonTree`)
	}
	
	
}

export default Service.getInstance()
